package com.lmz.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lmz.common.utils.PageUtils;
import com.lmz.product.VO.catalog2Vo;
import com.lmz.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lmz
 * @email ${email}
 * @date 2022-04-17 16:10:00
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询分类以及子分类
     */
    List<CategoryEntity> listWithTree();

    /**
     * 根据id删除节点
     */
    void removeMenuByIds(List<Long> asList);

    //根据id查询三级分类完整路径
    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevelOneCategory();

    Map<String, List<catalog2Vo>> getCatalgJson();

}